

/**
 * 封装 webServer 返回值
 * @param {number} code
 * @param {string} msg
 * @param {object} [obj={}]
 * @returns
 */
function returnJson(code: number, msg: string, obj:object = {}){ 
  const data = {
    code,msg,data: obj
  }
  return JSON.stringify(data);
}


export {
  returnJson
}